package com.jiawa.wiki.req;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@ToString
public class UserLoginReq {
    private Long id;

    private String loginName;

    @NotNull(message = "密码不能为空")
    @Length(max = 32,min = 6)
    private String password;
}
